﻿<UserControl x:Class="Intex.Controls.Stopwatch.StopwatchControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:Intex.Controls"
             mc:Ignorable="d" Background="DarkBlue">
    <StackPanel Orientation="Horizontal"  HorizontalAlignment="Center" VerticalAlignment="Center" >
        <Label Margin="10,0,0,0"  Content="{Binding Path=CLength, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}}" 
           FontSize="18" Background="Transparent" Foreground="Yellow" VerticalAlignment="Center" HorizontalAlignment="Center"
              
           MouseDoubleClick="Label_MouseDoubleClick"/> 
        <Label Margin="10,0,0,0" Content="{Binding Path=Unit, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type UserControl}}}" 
           FontSize="18" VerticalAlignment="Center"  HorizontalAlignment="Center" Background="Transparent" Foreground="Yellow" MouseDoubleClick="Label_MouseDoubleClick"/>
    </StackPanel>
</UserControl>
